export const EFormConstant = {
  validRule: [{
    text: '邮箱地址',
    value: 'email',
    pattern: '^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$',
    message: '请输入合法的邮箱地址'
  }, {
    text: '手机号码',
    value: 'phonenumber',
    pattern: '((\\d{11})|^((\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})|(\\d{4}|\\d{3})-(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1})|(\\d{7,8})-(\\d{4}|\\d{3}|\\d{2}|\\d{1}))$)',
    message: '请输入正确的手机号码'
  }, {
    text: '数字',
    value: 'number',
    pattern: '^-?((\\d{1,3}(,\\d{3})+?|\\d+)(\\.\\d{1,5})?)$',
    message: '只能输入数字'
  }, {
    text: '字母或下划线',
    value: 'variable',
    pattern: '^[A-Za-z_]*$',
    message: '只能是字母和下划线'
  }, {
    text: '首字字母,最长18',
    value: 'fields',
    pattern: '^[A-Za-z]{1}([a-zA-Z0-9_]{1,17})?$',
    message: '首字符为字母,最大长度18'
  }, {
    text: '网址',
    value: 'url',
    pattern: '^(https?|ftp):\\/\\/(((([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\\da-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\\da-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\\da-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\\da-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\uE000-\uF8FF]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\\da-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$',
    message: '请输入合法的网址'
  }, {
    text: '汉字',
    value: 'chinese',
    pattern: '[\u4E00-\u9FA5\uF900-\uFA2D]',
    message: '请输中文字符'
  }, {
    text: 'QQ号',
    value: 'qq',
    pattern: '^[1-9]*[1-9][0-9]*$',
    message: '请输入正确的QQ号码'
  }, {
    text: '以字母开头',
    value: 'varirule',
    pattern: '^[a-zA-Z]\\w*$',
    message: '只能为字母开头,允许字母、数字和下划线'
  }, {
    text: '整数',
    value: 'digits',
    pattern: '^\\d+$',
    message: '请输入整数'
  }, {
    text: '日期',
    value: 'date',
    pattern: '^([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8])))',
    message: '请输入日期格式'
  }, {
    text: '时间',
    value: 'time',
    pattern: '^(?:[01]?\\d|2[0-3])(?::[0-5]?\\d){2}$',
    message: '请输入合法的时间'
  }],
  showType: [{
    text: '隐藏',
    value: 'hidden'
  }, {
    text: '单行文本',
    value: 'input'
  }, {
    text: '多行文本',
    value: 'textarea'
  }, {
    text: '数字',
    value: 'number'
  }, {
    text: '下拉框',
    value: 'select'
  }, {
    text: '复选框',
    value: 'checkbox'
  }, {
    text: '单选框',
    value: 'radio'
  }, {
    text: '开关',
    value: 'switch'
  }, {
    text: '日期',
    value: 'date'
  }, {
    text: '时间',
    value: 'time'
  }, {
    text: '评分',
    value: 'rate'
  }, {
    text: '滑动条',
    value: 'slider'
  }, {
    text: '流水号',
    value: 'serialno'
  }, {
    text: '附件上传',
    value: 'uploadFile'
  }, {
    text: '图片上传',
    value: 'uploadImg'
  }, {
    text: '用户选择',
    value: 'user'
  }, {
    text: '部门选择',
    value: 'dept'
  }],
  showType3: [{
    text: '单行文本',
    value: 'input'
  }, {
    text: '数字',
    value: 'number'
  }, {
    text: '下拉框',
    value: 'select'
  }, {
    text: '日期',
    value: 'date'
  }, {
    text: '时间',
    value: 'time'
  }],
  colType: [{
    text: '字符串',
    value: 'varchar'
  }, {
    text: '大文本',
    value: 'clob'
  }, {
    text: '二进制',
    value: 'blob'
  }, {
    text: '数字型',
    value: 'number'
  }, {
    text: '日期',
    value: 'date'
  }],
  /*isExternal: [
    {
      text: '内部',
      value: '0'
    }, {
      text: '外部',
      value: '1'
    }
  ],*/
  isSync: [
    {
      text: '未创建',
      value: '0'
    }, {
      text: '已创建',
      value: '1'
    }, {
      text: '未同步',
      value: '2'
    }, {
      text: '已同步',
      value: '3'
    }
  ],
  yesNo: ['Y', 'N'],
  noYes: ['N', 'Y'],
  yesNo_text: [
    {
      text: '是',
      value: 'Y'
    }, {
      text: '否',
      value: 'N'
    }
  ],
  persistenceType: [
    {
      text: '数据库',
      value: 'db'
    }, {
      text: '远程http',
      value: 'http'
    }
  ],
  objStructure_oneToMany: 'oneToMany',
  objStructure_oneToOne: 'oneToOne',
  objStructure_main: 'main',
  objStructure: [
    {
      text: '单表',
      value: 'main'
    }, {
      text: '一对一',
      value: 'oneToOne'
    }, {
      text: '一对多',
      value: 'oneToMany'
    }
  ],
  objStructure2: [
    {
      id: 'oneToOne',
      text: '一对一',
      value: 'oneToOne'
    }, {
      id: 'oneToMany',
      text: '一对多',
      value: 'oneToMany'
    }
  ],
  appType: [
    {
      text: 'PC应用',
      value: 'pc'
    }, {
      text: '移动应用',
      value: 'mobile'
    }
  ],
  groupType: [
    {
      text: '分类',
      value: '1'
    }, {
      text: '应用',
      value: '2'
    }
  ],
  tempType: [
    {
      text: '表单',
      value: 'form'
    }, {
      text: '视图',
      value: 'view'
    }, {
      text: '模块',
      value: 'module'
    }
  ],
  status: [
    {
      text: '启用',
      value: '1'
    }, {
      text: '停用',
      value: '0'
    }
  ],
  alignType: [
    {
      text: '居中',
      value: 'center'
    }, {
      text: '居左',
      value: 'left'
    }, {
      text: '居右',
      value: 'right'
    }
  ],
  queryOp: [
    {
      text: '等于',
      value: 'eq'
    }, {
      text: '等于忽略大小写',
      value: 'eic'
    }, {
      text: '小于',
      value: 'lt'
    }, {
      text: '大于',
      value: 'gt'
    }, {
      text: '小于等于',
      value: 'le'
    }, {
      text: '大于等于',
      value: 'ge'
    }, {
      text: '不等于',
      value: 'ne'
    }, {
      text: '相似',
      value: 'lk'
    }, {
      text: '左相似',
      value: 'lfk'
    }, {
      text: '右相似',
      value: 'rhk'
      /*}, {
        text: '为空',
        value: 'inl'
      }, {
        text: '非空',
        value: 'nnl'*/
      /* }, {
         text: '在...中',
         value: 'in'
       }, {
         text: '不在...中',
         value: 'ni'*/
    }, {
      text: '在...之间',
      value: 'bt'
    }
  ],
  openType: [
    {
      text: '新增',
      value: 'handleAdd',
      buttonIcon:'plus',
      buttonType:'toolbar'
    }, {
      text: '发起流程',
      value: 'handleAddFlow',
      buttonIcon:'plus',
      buttonType:'toolbar'
    }, {
      text: '编辑',
      value: 'handleEdit',
      buttonIcon:'edit',
      buttonType:'inline'
    }, {
      text: '流程详细',
      value: 'handleDetailFlow',
      buttonIcon:'file-text',
      buttonType:'inline'
    }, {
      text: '详细',
      value: 'handleDetail',
      buttonIcon:'file-text',
      buttonType:'inline'
    }, {
      text: '批量删除',
      value: 'handleBatchDel',
      buttonIcon:'delete',
      buttonType:'toolbar'
    }, {
      text: '删除',
      value: 'handleDel',
      buttonIcon:'delete',
      buttonType:'inline'
    }, {
      text: '导出',
      value: 'handleExportXls',
      buttonIcon:'export',
      buttonType:'toolbar'
    }, {
      text: '导入',
      value: 'handleImportXls',
      buttonIcon:'import',
      buttonType:'toolbar'
    }, {
      text: '自定义',
      value: 'handleExt',
      buttonIcon:'file',
      buttonType:'toolbar'
    }
  ],
  openType2: [
    {
      text: '无链接',
      label: '无链接',
      value: 'none'
    }, {
      text: '编辑',
      label: '编辑',
      value: 'handleEdit'
    }, {
      text: '流程详细',
      label: '流程详细',
      value: 'handleDetailFlow'
    }, {
      text: '详细',
      label: '详细',
      value: 'handleDetail'
    }, {
      text: '自定义',
      label: '自定义',
      value: 'handleExt'
    }
  ],
  buttonStyle: [
    {
      text: 'primary',
      value: 'primary'
    }, {
      text: 'default',
      value: 'default'
    }, {
      text: 'dashed',
      value: 'dashed'
    }, {
      text: 'danger',
      value: 'danger'
    }, {
      text: 'link',
      value: 'link'
    }
  ],
  buttonType: [
    {
      text: '工具栏',
      value: 'toolbar'
    }, {
      text: '行内',
      value: 'inline'
    }
  ],
  defaultField: [
    "id", "create_by", "create_time", "update_by", "update_time", "sys_org_code"
  ],
  openConfig: [
    {
      text: '弹框',
      label: '弹框',
      value: 'dialog'
    /*}, {
      text: '页签',
      label: '页签',
      value: 'tab'
    }, {
      text: '浏览器',
      label: '浏览器',
      value: 'page'*/
    }
  ],
  viewType: [
    {
      text: '列表视图',
      value: 'table'
    }, {
      text: '树形视图',
      value: 'tree'
    }
  ],
  tuoMin: [
    {
      text: '无',
      value: 'none'
    }, {
      text: '邮箱地址',
      value: 'email'
    }, {
      text: '手机号码',
      value: 'phonenumber'
    }, {
      text: '身份证',
      value: 'idcard'
    }, {
      text: '地址',
      value: 'address'
    }, {
      text: '银行卡号',
      value: 'bankcard'
    }, {
      text: '自定义',
      value: 'ext'
    }
  ]
};